package com.rboat.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rboat.common.annotation.Excel;
import com.rboat.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 文章对象 blog_article
 * 
 * @author rboat
 * @date 2019-11-05
 */
public class BlogArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 文章类型id */
    @Excel(name = "文章类型id")
    private String articleTypeId;

    /** 文章类型名称*/
    @Excel(name = "文章类型名称")
    private String articleTypeName;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articleTitle;

    /** 文章信息 */
    @Excel(name = "文章信息")
    private String articleInfo;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String articleContent;

    /** 发布时间 */
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date articlePublishTime;

    /** 阅读数(自增) */
    @Excel(name = "阅读数(自增)")
    private Long articleCount;

    /** 文章来源(0:原创;1:转载) */
    @Excel(name = "文章来源(0:原创;1:转载)")
    private Long articleFrom;

    /** 博主id */
    @Excel(name = "博主id")
    private String articleMasterId;
    /** 博主名称 */
    @Excel(name = "博主名称")
    private String articleMasterName;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setArticleTypeId(String articleTypeId) 
    {
        this.articleTypeId = articleTypeId;
    }

    public String getArticleTypeId() 
    {
        return articleTypeId;
    }

    public String getArticleTypeName() {
        return articleTypeName;
    }

    public void setArticleTypeName(String articleTypeName) {
        this.articleTypeName = articleTypeName;
    }

    public void setArticleTitle(String articleTitle)
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() 
    {
        return articleTitle;
    }
    public void setArticleInfo(String articleInfo) 
    {
        this.articleInfo = articleInfo;
    }

    public String getArticleInfo() 
    {
        return articleInfo;
    }
    public void setArticleContent(String articleContent) 
    {
        this.articleContent = articleContent;
    }

    public String getArticleContent() 
    {
        return articleContent;
    }
    public void setArticlePublishTime(Date articlePublishTime) 
    {
        this.articlePublishTime = articlePublishTime;
    }

    public Date getArticlePublishTime() 
    {
        return articlePublishTime;
    }
    public void setArticleCount(Long articleCount) 
    {
        this.articleCount = articleCount;
    }

    public Long getArticleCount() 
    {
        return articleCount;
    }
    public void setArticleFrom(Long articleFrom) 
    {
        this.articleFrom = articleFrom;
    }

    public Long getArticleFrom() 
    {
        return articleFrom;
    }
    public void setArticleMasterId(String articleMasterId) 
    {
        this.articleMasterId = articleMasterId;
    }

    public String getArticleMasterId() 
    {
        return articleMasterId;
    }

    public String getArticleMasterName() {
        return articleMasterName;
    }

    public void setArticleMasterName(String articleMasterName) {
        this.articleMasterName = articleMasterName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articleTypeId", getArticleTypeId())
            .append("articleTypeName", getArticleTypeName())
            .append("articleTitle", getArticleTitle())
            .append("articleInfo", getArticleInfo())
            .append("articleContent", getArticleContent())
            .append("articlePublishTime", getArticlePublishTime())
            .append("articleCount", getArticleCount())
            .append("articleFrom", getArticleFrom())
            .append("articleMasterId", getArticleMasterId())
            .append("articleMasterName", getArticleMasterName())
            .toString();
    }
}
